package cn.highedu.spring.config;

import cn.highedu.spring.bean.AccountRepository;
import cn.highedu.spring.bean.JdbcAccountRepository;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.sql.DataSource;

@Configuration
public class Application2Config {

    @Bean
    public AccountRepository accountRepository(DataSource dataSource){
        return new JdbcAccountRepository(dataSource);
    }
}
